﻿#include "backgroundsystem.h"
#include "select.h"
#include "ui_backgroundsystem.h"
#include <QMessageBox>

BackgroundSystem::BackgroundSystem(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::BackgroundSystem)
{
    ui->setupUi(this);
    setWindowTitle("信息录入系统");
    setWindowIcon(QIcon(":/img/back.png"));

}

BackgroundSystem::~BackgroundSystem()
{
    delete ui;
}

//登入
void BackgroundSystem::on_pushButton_clicked()
{
    if (ui->lineEdit->text() == "123456789" && ui->lineEdit_2->text() == "123456789"){
        Select *w = new Select(this);
        this->hide();
        w->show();
    }else{
        QMessageBox::information(this,"提示","登录失败，请重新输入!");
        ui->lineEdit_2->clear();
    }
}
